package team.yidong.fenda.wx.controller;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.service.HospitalProfileService;

/**
 * Created by xuanlong on 2018/3/15.
 */
@Controller
public class WxHospitalProfileController {
    @Autowired
    HospitalProfileService hospitalProfileService;

    @RequestMapping("/wx/findHospitalProfile")
    @ResponseBody
    public JSONArray findHospitalProfile(@RequestParam Integer hospitalId) {
        return hospitalProfileService.findHospitalProfile(hospitalId);
    }
}
